function isPhone(phone) {
    return /^1[3|4|5|7|8]\d{9}$/.test(Number(phone));
}

function isIntegearNumber(number) {
    let pattern = new RegExp(/^\d{1,}$/);
    return pattern.test(Number(number));
}

function isNumber(number) {
    let pattern = new RegExp(/^(-)?\d+(\.\d+)?$/);
    return pattern.test(Number(number));
}

export { isPhone, isIntegearNumber, isNumber }